package com.blb.aop.dao.impl;

import com.blb.aop.dao.StudentDAO;
import com.blb.aop.entity.Student;
import com.blb.aop.util.MyLog;
import org.springframework.stereotype.Repository;

@Repository
public class StudentDAOImpl implements StudentDAO {
    @Override
    public void insert(Student student) {
        System.out.println("插入学生" + student);
    }

    @Override
    public void update(Student student) {
        System.out.println("更新学生" + student);
    }

    @MyLog("test")
    @Override
    public void delete(Long id) {
        System.out.println("删除学生" + id);
    }

    @Override
    public Student selectById(Long id) {
        System.out.println("查询学生" + id);
        return new Student(id,"测试",16,"男");
    }
}
